package com.atguigu.util.method_son;

import com.atguigu.util.method_fa.Vehicle;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class Bicycle extends Vehicle {
    private double wheelSize;

    public Bicycle() {
    }

    public Bicycle(double speed, String color, double wheelSize) {
        super(speed, color);
        this.wheelSize = wheelSize;
    }

    @Override
    public void move() {
        System.out.println("自行车正在移动");
    }

    public double getWheelSize() {
        return wheelSize;
    }

    public void setWheelSize(double wheelSize) {
        this.wheelSize = wheelSize;
    }

    @Override
    public String toString() {
        return "轮子尺寸：" + wheelSize + super.toString();
    }
}
